﻿@page
@model _17bang.Pages.Problem.NewModel
@{
    ViewData["Title"] = "我要求助.一起帮";
}
<style>
    .field-validation-error {
        color: red;
        font-size: 12px;
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
    }

        .field-validation-error::before {
            content: '\f119';
        }
</style>
<form asp-page="/Problem/New" method="post" style="padding-top:120px">
    <div class="form-group">
        <label><b>标题：（必填）</b></label><br />
        <input type="text" asp-for="Title" placeholder="简明扼要，不超过255个字" class="form-control">
        <span asp-validation-for="Title"></span>
    </div>
    <div class="form-group">
        <label><b>说明:（必填）</b></label><br />
        <textarea type="text" asp-for="NeUser.SelfDescription" class="form-control" style="height:300px"></textarea>
        <span asp-validation-for="NeUser.SelfDescription"></span>
    </div>
    <label><b>关键字：（*使用空格分隔）</b></label><br />
    <div class="form-group">
        <div class="input-group">
            <div class="input-group-prepend">
                <select asp-for="Language" asp-items="Model.AvailableLanguageOne"></select>
                <select asp-for="Language" asp-items="Model.AvailableLanguageTwo"></select>
            </div>
            <input class="form-control" type="text" name="keyword" placeholder="自定义关键字，使用空格分隔" />
        </div>
    </div>
    <span asp-validation-for="AvailableLanguageOne"></span>
    <label><b>定向求助:（<a href="/">推荐</a>）</b></label><br />
    <div class="input-group">
        <div class="input-group-prepend">
            <span class="input-group-text" id="basic-addon1">@@</span>
        </div>
        <input type="text" asp-for="DSName" placeholder="输入你想要求助的大神用户名" class="form-control" />
    </div>
    <label><b>悬赏帮帮币：（现有1720枚）</b></label><br />
    <div class="input-group">
        <div class="input-group-prepend">
            <span class="input-group-text">$</span>
        </div>
        <input type="text" asp-for="BBMoney" placeholder="正整数，建议10枚以上" class="form-control" aria-label="Amount (to the nearest dollar)">
        <div class="input-group-append">
            <span class="input-group-text">枚</span>
        </div>
    </div>
    <span asp-validation-for="BBMoney"></span>
    <div class="form-inline">
        <button type="submit" class="btn btn-primary" asp-page="/">发布</button>
        <button type="button" class="btn btn-light" asp-page="/">保存基本内容</button>
    </div>
</form>

